<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Admin\Content;

class Comment extends Model
{
    protected $table = 'comments';
    protected $primaryKey = 'id';

    public function user()
    {
        return $this->belongsTo(User::class, 'uid');
    }

    public function content()
    {
        return $this->belongsTo(Content::class, 'cid');
    }
}
